﻿using Creventive.Wpf.ShellFactory.Services;
using Creventive.Wpf.ShellFactory.Workspace.Primitives;

namespace Creventive.Wpf.ShellFactory.Workspace
{
    /// <summary>
    /// Represents an object which is capable of creating an application view model.
    /// </summary>
    public interface IViewModelSource
    {
        /// <summary>
        /// Creates a view model using the specified services and for the specified view.
        /// </summary>
        /// <param name="services">The services.</param>
        /// <param name="ownerView">The owner view.</param>
        /// <returns></returns>
        ApplicationViewModel Create(IServiceContainer services, ApplicationView ownerView);
    }
}